package com.y.report.service.basic.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.y.report.entity.basic.YReportLog;
import com.y.report.mapper.basic.YReportLogMapper;
import com.y.report.service.basic.YReportLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 接口访问日志表 服务实现类
 * </p>
 *
 * @author y
 * @since 2021-09-25
 */
@Service
@Primary
public class YReportLogServiceImpl extends ServiceImpl<YReportLogMapper, YReportLog> implements YReportLogService {


    @Autowired
    private YReportLogMapper yReportLogMapper;

    @Override
    public int appendMultiple(List<YReportLog> obj) {
        return baseMapper.appendMultiple(obj);
    }

    @Override
    public int modifyCondition(YReportLog newObj, YReportLog oldObj) {
        return yReportLogMapper.modifyCondition(newObj, oldObj);
    }

    @Override
    public List<YReportLog> queryCondition(YReportLog eqObj, YReportLog likeObj, IPage<YReportLog> page) {
        return yReportLogMapper.queryCondition(eqObj, likeObj, page);
    }
}
